﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Service.aspx.cs" Inherits="RioStudio.Website.View.Service" %>

<asp:Content ID="Content0" ContentPlaceHolderID="TitleMain" runat="server">
    Dịch vụ
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="rio-service table-row">
        <div class="left table-cell">
            <telerik:RadListView ID="rlvService" ItemPlaceholderID="ServiceContainer" runat="server" OnNeedDataSource="rlvService_NeedDataSource">
                <ItemTemplate>
                    <a href='/Service/<%# Eval("Slug") %>' class="rio-link">
                        <%# Eval("ServiceName") %></a><br />
                </ItemTemplate>
                <LayoutTemplate>
                    <div class="title">
                        <div class="rio-title">
                            Services
                        </div>
                        <div class="rio-subtitle">
                            Wedding album
                        </div>
                        <telerik:RadCodeBlock runat="server">
                            <% if (HttpContext.Current.User.Identity.IsAuthenticated)
                               {%>
                            <div>
                                <a href="/Admin/Service" class="rio-link">Chỉnh sửa</a></div>
                            <%} %>
                        </telerik:RadCodeBlock>
                    </div>
                    <div class="content">
                        <asp:PlaceHolder ID="ServiceContainer" runat="server" />
                    </div>
                    <table>
                        <tr>
                            <td class="online">
                                <a href="ymsgr:SendIM?banggia03k4">
                                    <img style="border-width: 0px;" src="http://opi.yahoo.com/online?u=banggia03k4&m=g&t=2&l=us" /></a>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="height: 8px;">
                            </td>
                        </tr>
                        <tr>
                            <td class="online">
                                <a href="ymsgr:SendIM?Star_center1905">
                                    <img style="border-width: 0px;" src="http://opi.yahoo.com/online?u=star_center1905&m=g&t=2&l=us" /></a>
                            </td>
                        </tr>
                    </table>
                </LayoutTemplate>
            </telerik:RadListView>
        </div>
        <div class="center table-cell">
            <asp:HiddenField ID="hiddenImageID" runat="server" />
            <div class="title">
                <div class="rio-title">
                    Details
                </div>
                <div class="rio-subtitle">
                    Thông tin chi tiết gói chụp ảnh
                </div>
            </div>
            <div class="content">
                <asp:Literal ID="literalDetail" runat="server" />
            </div>
            <telerik:RadAjaxPanel ID="panelComment" runat="server">
                <telerik:RadListView ID="rlvComment" ItemPlaceholderID="itemHolder" runat="server" OnNeedDataSource="rlvComment_NeedDataSource" OnItemCommand="rlvComment_ItemCommand" DataKeyNames="ServiceCommentID">
                    <LayoutTemplate>
                        <asp:PlaceHolder ID="itemHolder" runat="server" />
                    </LayoutTemplate>
                    <ItemTemplate>
                        <div style="background-color: #000; border-bottom: 1px solid #161616;">
                            <table cellpadding="0" cellspacing="0" style="padding: 5px; line-height: 18px; border-collapse: separate">
                                <tr>
                                    <td>
                                        <span class="boldWhite">
                                            <%# HttpUtility.HtmlEncode(Eval("PostedName").ToString()) %></span><span class="footer"> (<%# Eval("CreatedDate") %>)</span>
                                        <% if (HttpContext.Current.User.Identity.IsAuthenticated)
                                           {%>
                                        <span>
                                            <asp:LinkButton ID="LinkButton1" Text='<%# bool.Parse(Eval("IsApproved").ToString()) ? "Bỏ duyệt" : "Duyệt" %>' runat="server" CommandArgument='<%# Eval("ServiceCommentID") %>' CommandName='<%# bool.Parse(Eval("IsApproved").ToString()) ? "Unapprove" : "Approve" %>' />
                                            |
                                            <asp:LinkButton ID="LinkButton2" runat="server" Text="Xóa" CommandArgument='<%# Eval("ServiceCommentID") %>' CommandName="Remove" OnClientClick="return confirm('Có phải bạn muốn xóa lời bình luận này?');" /></span>
                                        <%} %>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <%# HttpUtility.HtmlEncode(Eval("Detail").ToString()) %>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </ItemTemplate>
                    <EmptyItemTemplate>
                        Chưa có bình luận gì
                    </EmptyItemTemplate>
                </telerik:RadListView>
                <div style="background-color: #777; border-bottom: 1px solid #161616;">
                    <table cellpadding="0" cellspacing="0" style="padding: 5px; line-height: 18px; border-collapse: separate">
                        <tr>
                            <td style="color: #333; font-weight: bold;">
                                Gửi comment
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadTextBox ID="txtFullname" runat="server" Width="450px" MaxLength="255" EmptyMessage="Họ và tên bạn" Style="background-color: #666; border: 0px; padding: 5px;" />
                            </td>
                        </tr>
                        <tr>
                            <td style="padding: 5px 0px 5px 0px;">
                                <telerik:RadTextBox ID="txtDetail" runat="server" Width="450px" TextMode="MultiLine" Style="background-color: #666; border: 0px; padding: 5px; font-family: Arial, Helvetica, sans-serif; font-size: 12px;" />
                            </td>
                        </tr>
                        <tr>
                            <td style="padding: 5px 0px 5px 0px;" align="right">
                                <asp:ImageButton ID="btnSend" runat="server" ImageUrl="~/Content/Images/sendBtn.jpg" OnClick="btnSend_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </telerik:RadAjaxPanel>
        </div>
        <div class="right table-cell">
            <telerik:RadListView ID="rlvSampleAlbum" runat="server" ItemPlaceholderID="itemHolder" OnNeedDataSource="rlvSampleAlbum_NeedDataSource">
                <LayoutTemplate>
                    <div class="title">
                        <div class="rio-title">
                            Sample
                        </div>
                        <div class="rio-subtitle">
                            Album mẫu
                        </div>
                    </div>
                    <div class="content">
                        <asp:PlaceHolder ID="itemHolder" runat="server" />
                    </div>
                </LayoutTemplate>
                <ItemTemplate>
                    <div class="image">
                        <div>
                            <a href='/Album/<%# Eval("Slug") %>'>
                                <img class="jail" src='/ImageHandler.axd?image=<%# Eval("GalleryAvatar") %>&Height=103&Width=168' alt="" border="0" /></a>
                        </div>
                        <div class="rio-subtitle">
                            <%# Eval("GalleryPlace")%>
                        </div>
                    </div>
                </ItemTemplate>
            </telerik:RadListView>
        </div>
        <%--<table cellpadding="0" cellspacing="0" style="width: 953px;">
            <telerik:RadCodeBlock runat="server">
                <% if (HttpContext.Current.User.Identity.IsAuthenticated)
                   {%>
                <tr>
                    <td style="width: 20px;">
                    </td>
                    <td colspan="2" style="padding: 20px 0px 20px 0px; line-height: 24px;">
                        <a href="/Admin/Service">Chỉnh sửa</a>
                    </td>
                </tr>
                <%} %>
            </telerik:RadCodeBlock>
            <tr>
                <td style="width: 20px;">
                </td>
                <td style="width: 174px; padding: 20px 0px 20px 0px; line-height: 24px;" valign="top">
                </td>
                <td style="width: 48px;">
                </td>
                <td style="width: 464px; padding: 20px 0px 20px 0px; line-height: 24px;" valign="top">
                </td>
                <td style="width: 52px;">
                </td>
                <td style="width: 174px; padding: 20px 0px 20px 0px;" valign="top">
                </td>
                <td style="width: 21px;">
                </td>
            </tr>
        </table>--%>
    </div>
</asp:Content>
